<%-- 
    Document   : stockage
    Created on : 9 oct. 2013, 15:29:32
    Author     : Quentin
    Ajoute un message au serveur
--%>
<%@page import="com.quentin.message.MessageTchat"%>

<jsp:useBean id="gestion" scope="application" class="com.quentin.message.GestionnaireMessages"/>
<jsp:useBean id="outils" scope="application" class="com.quentin.message.UtilCookies"/>
<%
    String messageRecu = request.getParameter("messageAdd");

    if(messageRecu != null && !messageRecu.isEmpty()){
        gestion.ajouteMessage(new MessageTchat((String) session.getAttribute("nom"),messageRecu));
    }
%>